diff --git a/.gitignore b/.gitignore index 337cce7..26d25f5 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ tmp .DS_Store history-*.json main -main.exe \ No newline at end of file +main.exe +*.jpe \ No newline at end of file diff --git a/main.go b/main.go index 3830367..5444052 100644 --- a/main.go +++ b/main.go @@ -45,7 +45,7 @@ func main() { userController.Route(app) app.Get("/", func(ctx *fiber.Ctx) error { - return ctx.JSON(map[string]interface{}{"Status": "Ok"}) + return ctx.Render("index", fiber.Map{"AppHost": "http://localhost:3000"}) }) err := app.Listen(":3000") diff --git a/readme.md b/readme.md index 1a53ce7..2a9be1b 100644 --- a/readme.md +++ b/readme.md @@ -21,17 +21,17 @@ You can fork or edit this source code ! -Current API +### Current API -| Feature | Menu | Method | URL | Payload | -|---------|-------------------------|--------|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| ✅ | Login | GET | /app/login | | -| ✅ | Logout | GET | /app/logout | | -| ✅ | Reconnect | GET | /app/reconnect | | +| Feature | Menu | Method | URL | Payload | +|---------|-------------------------|--------|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| ✅ | Login | GET | /app/login | | +| ✅ | Logout | GET | /app/logout | | +| ✅ | Reconnect | GET | /app/reconnect | | | ✅ | User Info | GET | /user/info |
| Param | Type | Type | Example |
|---|---|---|---|
| phone | string | querystring | 6289685024099 |
| Param | Type | Type | Example |
|---|---|---|---|
| phone | string | querystring | 6289685024099 |
| Param | Type | Type | Example |
|---|---|---|---|
| phone | string | form-data | 6289685024099 |
| message | string | form-data | Hello guys this is testing |
| Param | Type | Type | Example |
|---|---|---|---|
| phone | string | form-data | 6289685024099 |
| caption | string | form-data | Hello guys this is caption |
| view_once | bool | form-data | false |
| image | binary | form-data | image/jpg,image/jpeg,image/png |
| Param | Type | Type | Example |
|---|---|---|---|
| phone | string | form-data | 6289685024099 |
| file | binary | form-data | any (max: 10MB) |
Open Setting > Linked Devices > Link Device
+| Group Name | +Group Participants | +Group Created At | +
|---|---|---|
| [[ g.Name ]] | +[[ g.Participants.length ]] | +[[ g.GroupCreated ]] | +