Requires admin approval for users to add new words, fix bugs, and add get started in readme.md #36
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
gambar 1
gambar 2
gambar 3
aku disini pake action 1 = suspend, 2 = accepted, 3 = rejected, intinya ada tabel baru namanya words_gateaway itu untuk orang selain admin nambahin kata2 yang akan di review admin, untuk status actionnya karena cuman ada 3 nanti di hardcode aja di FE nya wkwwkw tidak aku tambahin tabel pivot agar ngga kebanyakan tabel.
terus admin bisa ngubah status nya ada di gambar 2, udah aku buat biar bisa bulk insert biar kalo ada banyak kata yang masuk biar bisa sekalian banyak ditolak atau diterima. terus kalo statusnya diubah menjadi 2 dia bakal otomatis masuk ke tabel dictionaries.
terus terakhir gambar 3 itu adalah API lama yang ngambil semua data dari tabel dictionaries buat ngelihatin kalo actionnya udah diubah 2 langsung otomatis masuk
kira-kira itu yang aku buat bang kurang nambahin middleware buat ngelindungin API ini :
/api/v1/admin/
/api/v1/admin/update
/api/v1/kamus -> menurutku ini dipergunakan buat admin aja yang bisa langsung create ke tabel dictionaries
untuk user biasa create kamusnya pake API ini = /api/v1/kamus/gate biar ngga langsung masuk ke tabel dictionaries