Skip to content
This repository was archived by the owner on Aug 10, 2022. It is now read-only.

Latest commit

 

History

3 提交

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

仓库 files navigation

Dalcs API

This repo contains the backend code for dalcs-www.

Getting started

To run the rest api server, run

go build -o api main.go
./api rest

Routes

Route Params Description
POST /v1/invite/email to Sends an email with a verification code to the to param. This route rate limits based on ip to 10 emails per hour.
POST /v1/invite/verify code, email Verifies the param code with the specified email param. It returns a JWT token with code & email encoded. This route rate limits 5req/min.
POST /v1/invite/invite token, github_user This route will verify the token and call github's api to invite the specified github_user.

Structure

关于

rest api to send invites to this github org

Topics

Resources

Stars

0 stars

关注者

2 watching

复刻s

发布

Used by

贡献者

Languages