Commit 54c85998 authored by natalie's avatar natalie 💜
Browse files

Lock down several public API endpoints

parent 032adfe1
Pipeline #226 canceled with stages
......@@ -5,7 +5,7 @@ import { Hashtags } from '../../../../models';
export const meta = {
tags: ['hashtags'],
requireCredential: false as const,
requireCredential: true as const,
params: {
limit: {
......
......@@ -5,7 +5,7 @@ import { Hashtags } from '../../../../models';
export const meta = {
tags: ['hashtags'],
requireCredential: false as const,
requireCredential: true as const,
params: {
limit: {
......
......@@ -7,7 +7,7 @@ import { normalizeForSearch } from '@/misc/normalize-for-search';
export const meta = {
tags: ['hashtags'],
requireCredential: false as const,
requireCredential: true as const,
params: {
tag: {
......
......@@ -23,7 +23,7 @@ const max = 5;
export const meta = {
tags: ['hashtags'],
requireCredential: false as const,
requireCredential: true as const,
res: {
type: 'array' as const,
......
......@@ -4,7 +4,7 @@ import { Users } from '../../../../models';
import { normalizeForSearch } from '@/misc/normalize-for-search';
export const meta = {
requireCredential: false as const,
requireCredential: true as const,
tags: ['hashtags', 'users'],
......
......@@ -6,7 +6,7 @@ import { Notes } from '../../../../models';
export const meta = {
tags: ['notes'],
requireCredential: false as const,
requireCredential: true as const,
params: {
limit: {
......
......@@ -12,7 +12,7 @@ import { generateMutedUserQuery } from '../../common/generate-muted-user-query';
export const meta = {
tags: ['notes'],
requireCredential: false as const,
requireCredential: true as const,
params: {
query: {
......
......@@ -6,7 +6,7 @@ import { generateMutedUserQueryForUsers } from '../common/generate-muted-user-qu
export const meta = {
tags: ['users'],
requireCredential: false as const,
requireCredential: true as const,
params: {
limit: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment