Skip to content

Commit 84919ff

Browse files
committed
Separate admin API endpoint with sub path /admin
1 parent 6e39aed commit 84919ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

features/attendee_import.feature

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Feature: Attendee Importation
2-
Scenario: POST /attendees
3-
When I make a POST request to "/attendees" with file:
2+
Scenario: POST /admin/attendees with a CSV file that contains attendee information
3+
When I make a POST request to "/admin/attendees" with file:
44
"""
55
token,display_name,
66
"fccfc8bfa07643a1ca8015cbe74f5f17","Aotoki",

worker/controller/attendee.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { IRequest, status } from 'itty-router'
44

55
export type AttendeeRequest = IRequest
66

7-
@Post('/attendees')
7+
@Post('/admin/attendees')
88
export class CreateAttendees extends OpenAPIRoute {
99
static schema: OpenAPIRouteSchema = {
1010
summary: 'Creates attendees',

0 commit comments

Comments
 (0)